package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_screen")
public class Screen {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "uuid")
    private String uuid;

    @Column(name = "name")
    private String name;

    @Column(name = "screen_no")
    private String screenNo;

    @Column(name = "screen_ip")
    private String screenIp;

    @Column(name = "camera_no")
    private String cameraNo;


    @Column(name = "default_info")
    private String defaultInfo;
    
    @Column(name = "port_no")
    private String portNo;
    
    @Column(name = "attr1")
    private String attr1;
    
    @Column(name = "attr2")
    private String attr2;
    
    @Column(name = "attr3")
    private String attr3;


	public String getUuid()
	{
		return uuid;
	}


	public void setUuid(String uuid)
	{
		this.uuid = uuid == null ? null : uuid.trim();
	}


	public String getName()
	{
		return name;
	}


	public void setName(String name)
	{
		this.name = name == null ? null : name.trim();
	}


	public String getScreenNo()
	{
		return screenNo;
	}


	public void setScreenNo(String screenNo)
	{
		this.screenNo = screenNo == null ? null : screenNo.trim();
	}


	public String getScreenIp()
	{
		return screenIp;
	}


	public void setScreenIp(String screenIp)
	{
		this.screenIp = screenIp == null ? null : screenIp.trim();
	}


	public String getCameraNo()
	{
		return cameraNo;
	}


	public void setCameraNo(String cameraNo)
	{
		this.cameraNo = cameraNo == null ? null : cameraNo.trim();
	}


	public String getDefaultInfo()
	{
		return defaultInfo;
	}


	public void setDefaultInfo(String defaultInfo)
	{
		this.defaultInfo = defaultInfo == null ? null : defaultInfo.trim();
	}
	
	public String getPortNo()
	{
		return portNo;
	}


	public void setPortNo(String portNo)
	{
		this.portNo = portNo == null ? null : portNo.trim();
	}


	public String getAttr1()
	{
		return attr1;
	}


	public void setAttr1(String attr1)
	{
		this.attr1 = attr1 == null ? null : attr1.trim();
	}


	public String getAttr2()
	{
		return attr2;
	}


	public void setAttr2(String attr2)
	{
		this.attr2 = attr2 == null ? null : attr2.trim();
	}


	public String getAttr3()
	{
		return attr3;
	}


	public void setAttr3(String attr3)
	{
		this.attr3 = attr3 == null ? null : attr3.trim();
	}
}